Skip to content

flow-php/postgresql-migrations#2290

Merged
norberttech merged 3 commits into1.xfrom
postgresql-lib-dx
Apr 7, 2026
Merged

flow-php/postgresql-migrations#2290
norberttech merged 3 commits into1.xfrom
postgresql-lib-dx

Conversation

@norberttech
Copy link
Copy Markdown
Member

Resolves: #xxx

Change Log


Added

  • migrations to flow-php/postgresql
  • flow-php/symfony-postgresql-bundle

Fixed

Changed

Removed

Deprecated

Security

@norberttech norberttech added this to the 0.35.0 milestone Apr 6, 2026
@norberttech norberttech moved this to In Progress in Roadmap Apr 6, 2026
chore: introduce parameters() dsl function to posgresql client
feature: introduce schema to flow-php/postgresql

- create schema definition
- read whole Catalog from a postgresql db
- added dependeny from flow-php/types
- created TypeMapper to quickly map rows into collections of structures

feature: catalog comparator

- including comparator for all db objects

refactor: move parsing data type string to dedicated parser

refactor: unify naming convetion with colum and value type

refactoring: optimizations and renames

- geneate diff sql's for migratiosn up/down
- unify naming of postgresql dsl
- cover unlogged tables
- added toSql() to Schema objects

feature: missing postgresql table options

feature: table rename detection

refactor: remove RawCondition and RawExpression

- unify DSL
- replace inline strings with proper query builders in tests

refactor: split postgresql dsl into smaller files

refactor: simplify diffs to return only one way migration sqls

refactor: make diffs to return query builders

feature: improve rename strategies

- introduce similarity names abstraction
- introduce rename strategy abstraction

feature: detect if the view requires an update

refactor: allow to pass strings instead of col() table() expressions

- update documentation

fix: introduce execution order strategy

chore: flow-php/postgresql-migrations skeleton
feature: migrations cli app interface

feature: basic building blocks for migrations

feature: migration store

feature: migrations repository

feature: migrations repository

feature: migrations generator

feature: migration executor

feature: setup migrations cli commands

feauter: symfony migration bundle

- move core abstractions to postgresql package
- move implementations to symfony bundle

feature: load catalog cofiguration from yaml

feature: wrap migrations in transations

refactor: catalog_providers configuration in postgresql bundles

- detach catalog from connection
- allow to chain providers
- allow to register by tag / attribute

refactor: simplify catalog congigratuin

feature: add support for telemetry in postgresql bundle

feature: documentation
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

❌ Patch coverage is 92.32143% with 172 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.89%. Comparing base (ab43f9e) to head (4509be7).
⚠️ Report is 1 commits behind head on 1.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##              1.x    #2290       +/-   ##
===========================================
+ Coverage   12.26%   83.89%   +71.62%     
===========================================
  Files        1368     1482      +114     
  Lines       51221    55877     +4656     
===========================================
+ Hits         6282    46876    +40594     
+ Misses      44939     9001    -35938     
Components Coverage Δ
etl 90.62% <ø> (+90.56%) ⬆️
cli 85.76% <ø> (+85.76%) ⬆️
lib-array-dot 94.82% <ø> (+94.82%) ⬆️
lib-azure-sdk 60.05% <ø> (+60.05%) ⬆️
lib-doctrine-dbal-bulk 95.16% <ø> (+95.16%) ⬆️
lib-filesystem 83.33% <ø> (+73.41%) ⬆️
lib-types 88.88% <ø> (+88.16%) ⬆️
lib-parquet 70.18% <ø> (+0.50%) ⬆️
lib-parquet-viewer 83.04% <ø> (+83.04%) ⬆️
lib-snappy 90.65% <ø> (+0.46%) ⬆️
lib-dremel 0.00% <ø> (ø)
lib-postgresql 88.61% <90.51%> (+88.61%) ⬆️
lib-telemetry 89.57% <ø> (+89.57%) ⬆️
bridge-filesystem-async-aws 90.97% <ø> (+90.97%) ⬆️
bridge-filesystem-azure 89.43% <ø> (+89.43%) ⬆️
bridge-monolog-http 97.45% <ø> (+97.45%) ⬆️
bridge-openapi-specification 91.50% <ø> (+91.50%) ⬆️
symfony-http-foundation 74.11% <ø> (+74.11%) ⬆️
bridge-psr18-telemetry 100.00% <ø> (+100.00%) ⬆️
bridge-psr7-telemetry 100.00% <ø> (+100.00%) ⬆️
bridge-telemetry-otlp 89.29% <ø> (+89.29%) ⬆️
bridge-symfony-http-foundation-telemetry 88.23% <ø> (+88.23%) ⬆️
bridge-symfony-postgresql-bundle 96.61% <96.61%> (∅)
bridge-symfony-telemetry-bundle 67.60% <ø> (+67.60%) ⬆️
adapter-chartjs 84.72% <ø> (+84.72%) ⬆️
adapter-csv 88.65% <ø> (+88.65%) ⬆️
adapter-doctrine 92.00% <ø> (+92.00%) ⬆️
adapter-elasticsearch 92.78% <ø> (+92.78%) ⬆️
adapter-google-sheet 99.02% <ø> (+99.02%) ⬆️
adapter-http 67.91% <ø> (+67.91%) ⬆️
adapter-json 87.61% <ø> (+87.61%) ⬆️
adapter-logger 47.36% <ø> (+47.36%) ⬆️
adapter-parquet 78.89% <ø> (+78.89%) ⬆️
adapter-text 81.25% <ø> (+81.25%) ⬆️
adapter-xml 82.07% <ø> (+82.07%) ⬆️
adapter-avro 0.00% <ø> (ø)
adapter-excel 94.02% <ø> (+94.02%) ⬆️
adapter-postgresql 0.00% <0.00%> (ø)
bridge-phpunit-telemetry 48.14% <ø> (+44.90%) ⬆️
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@norberttech norberttech changed the title Postgresql lib dx flow-php/postgresql-migrations Apr 7, 2026
@norberttech norberttech merged commit fe96cdc into 1.x Apr 7, 2026
28 of 29 checks passed
@norberttech norberttech deleted the postgresql-lib-dx branch April 7, 2026 09:03
@github-project-automation github-project-automation bot moved this from In Progress to Done in Roadmap Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant